#ifndef ANIMATION_H
#define ANIMATION_H

#include "EngineApi.h"
#include "Graphics.h"

class Animation
{
public:
	 void getCurrentUV(unsigned int frameNumber);
	 void animateSprite(float frameRate);
	 Animation(D3DVertexUV* vertices,Texture* pTexture, float frameWidth, float frameHeight, unsigned int cant);
private:
	 Texture*	  _pTexture;
	 D3DVertexUV* _vertices;
	 float	      _frameWidth;
	 float	      _frameHeight;
	 unsigned int _cant;
	
	 float _currentU, _currentV;
	 
	 unsigned int _frameNumber;
	 float		  _miliSecondsAcum;
};
#endif//ANIMATION_H 